#include "threadpool.hpp"
#include"task.hpp"
#include<unistd.h>

int main()
{
    ThreadPool<task_t>* tp = ThreadPool<task_t>::GetTP();
    int cnt = 5;
    while(cnt--)
    {
        tp->Push(Download);
        sleep(1);
    }
    tp->Stop();
    tp->Join();
    delete tp;
    
    return 0;
}

